﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace StudentForm
{
    public partial class Form1 : Form
    {
        Student stu ;

        public Form1()
        {
            InitializeComponent();
            stu = new Student();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            stu.set_roll_no(textBox1.Text);
            stu.set_name(textBox2.Text);
            stu.set_mobile(textBox3.Text);
            stu.set_address(textBox4.Text);
            stu.set_standard(textBox5.Text);
        }

        private void button2_Click(object sender, EventArgs e)
        {
           // string str = ("Your Roll No {0}",stu.getRoll_no());


            MessageBox.Show("Your Roll Number " +stu.getRoll_no()  + "Name " +stu.getName() + "Mobile no " +stu.getMobile() + "Address" +stu.getAddress() + "standard" +stu.getStandard());
             
        }
    }
}
